import request from '@/utils/request'

// 查询算法参数说明列表
export function listDesc(query) {
  return request({
    url: '/knowledge/desc/list',
    method: 'get',
    params: query
  })
}

// 查询算法参数说明详细
export function getDesc(descId) {
  return request({
    url: '/knowledge/desc/' + descId,
    method: 'get'
  })
}

// 新增算法参数说明
export function addDesc(data) {
  return request({
    url: '/knowledge/desc',
    method: 'post',
    data: data
  })
}

// 修改算法参数说明
export function updateDesc(data) {
  return request({
    url: '/knowledge/desc',
    method: 'put',
    data: data
  })
}

// 删除算法参数说明
export function delDesc(descId) {
  return request({
    url: '/knowledge/desc/' + descId,
    method: 'delete'
  })
}
